From a22fbc506d196a01d8ecbadba8f9708b6fbb6d4f Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 16 Dec 2023 12:45:08 +0000 Subject: Store additional data before storing free variables --- ...ody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index f248c1db..a421098a 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -36,12 +36,13 @@ Compilation unit elements: Locals: * (val "closure__f__0" int) - * (val "closurePointer__f__0" data-ptr) * (val "effectHandlerCurrent__0" data-ptr) + * (val "closurePointer__f__0" data-ptr) Instructions: ( + (call (local "effectHandlerCurrent__0") "shed__runtime__effects_get_handler" ()) (alloc-heap (local "closurePointer__f__0") (struct (function-ptr (struct (data-ptr)) (struct ())))) ( memory-store @@ -50,7 +51,6 @@ Instructions: offset=(0) value=(function-ptr "shed__effectHandlerMethod__f__0") ) - (call (local "effectHandlerCurrent__0") "shed__runtime__effects_get_handler" ()) ( memory-store pointer=(local "closurePointer__f__0") -- cgit v1.2.3